PeachDrawing.Text

PeachDrawing.Text.Outlines.EmbeddedBitmap

EmbeddedBitmap(byte[], int, int, int, double, double) Constructor

One picture of a glyph from one strike of a font that draws its colour glyphs as bitmaps (CBDT/CBLC or sbix).

public EmbeddedBitmap(byte[] Data, int Ppem, int Width, int Height, double BearingX, double BearingTop);

Parameters

Data System.Byte[]

The encoded image: PNG, or for sbix also JPEG.

Ppem System.Int32

The pixels per em of the strike the picture belongs to. The picture is drawn at fontSize / Ppem per pixel.

Width System.Int32

The width of the picture in strike pixels.

Height System.Int32

The height of the picture in strike pixels.

BearingX System.Double

The distance from the glyph origin to the left edge of the picture, in strike pixels.

BearingTop System.Double

The distance from the baseline up to the top edge of the picture, in strike pixels.

Remarks

Two pictures are equal when their numbers are and their Data arrays are the same array; compare the bytes themselves to tell whether two pictures have the same image.